Set Constructor (IEnumerable, IEqualityComparer)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new Set. The Equals and GetHashCode method of the passed comparer object will be used to compare items in this set. The set is initialized with all the items in the given collection.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public Set(
	IEnumerable<T> collection,
	IEqualityComparer<T> equalityComparer
)
Visual Basic (Declaration)
Public Sub New ( _
	collection As IEnumerable(Of T), _
	equalityComparer As IEqualityComparer(Of T) _
)
Visual C++
public:
Set (
	IEnumerable<T>^ collection, 
	IEqualityComparer<T>^ equalityComparer
)

Parameters

collection
IEnumerable<(Of <T>)>
A collection with items to be placed into the Set.
equalityComparer
IEqualityComparer<(Of <T>)>
An instance of IEqualityComparer<T> that will be used to compare items.

See Also